package com.tanhua.common.utils;

import com.tanhua.common.pojo.Admin;


public class AdminThreadLocal {

    private static final ThreadLocal<Admin> LOCAL = new ThreadLocal<Admin>();

    private AdminThreadLocal(){

    }


    public static void set(Admin admin){
        LOCAL.set(admin);
    }


    public static Admin get(){
        return LOCAL.get();
    }


    public static void remove(){
        LOCAL.remove();
    }
}
